"""
build commands list
"""


def raw_command(args, method, uri, data):
    cmd = ['redfishtool.py', '-r', args.r, '-u', args.u, '-p', args.p, 'raw', method, uri]
    if data:
        cmd.append('-d')
        cmd.append(data)
    return cmd


def integrated_command(system_args, *args):
    return ['redfishtool.py', '-r', system_args.r, '-u', system_args.u, '-p', system_args.p, *args]
